package com.naughty.userlogin02.dao;

import com.naughty.userlogin02.bean.Book;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface BookDao {
    //方法体

    //得到所有班级信息
    public List<Book> getAllBook(@Param("bname") String bname, @Param("pageStart") int pageStart, @Param("pageSize") int pageSize);
    //得到班级数
    public int getBookCounts(@Param("bname") String bname);
    //添加班级信息
    public int addBook(Book book);
    //修改班级信息
    public Book getUpdateBook(String bid);
    public int editBook(Book book);
    //删除班级信息
    public int deleteBook(String bid);

    public List<Book> getAllBCBook(@Param("bname") String bname, @Param("pageStart") int pageStart, @Param("pageSize") int pageSize);
    //得到班级数
    public int getBookBCCounts(@Param("bname") String bname);
    //添加班级信息
    public int addBCBook(Book book);
    //修改班级信息
    public Book getUpdateBCBook(String bid);
    public int editBCBook(Book book);
    //删除班级信息
    public int deleteBCBook(String bid);

    public List<Book> getAllCBook(@Param("bname") String bname, @Param("pageStart") int pageStart, @Param("pageSize") int pageSize);
    //得到班级数
    public int getBookCCounts(@Param("bname") String bname);
    //添加班级信息
    public int addCBook(Book book);
    //修改班级信息
    public Book getUpdateCBook(String bid);
    public int editCBook(Book book);
    //删除班级信息
    public int deleteCBook(String bid);

}